package com.xyoto.community.enums;

public enum FollowEnum implements Code {

    /** 文件上传状态码枚举 */
    FOLLOW_CREATE_FAIL(1160,"新增关注失败"),
    FOLLOW_CANCEL_FAIL(1161, "用户未关注"),
    FOLLOW_TARGET_NOT_EXISTENCE(1162, "关注目标不存在"),
    FOLLOW_DYNAMIC_YES(1163,"已关注过该动态"),
    FOLLOW_USER_YES(1164,"该用户已关注"),
    FOLLOW_USER_NO(1165,"该用户已取消关注"),
    FOLLOW_USER_FAIL(1166,"取消关注用户失败"),
    FOLLOW_USER_ME(1167,"不能关注自己"),
    FOLLOW_TOPIC_ERROR(1168,"关注/取关话题保存到数据库失败"),
    ;



    /** 枚举状态码 */
    private int code;

    /** 枚举状态信息 */
    private String msg;

    /**
     * 全参构造器
     *
     * @param code 枚举状态码
     * @param msg 枚举状态值
     */
    FollowEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
